package com.candy.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.candy.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 系统日志
 * </p>
 *
 * @author pxs
 * @since 2021-07-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_log")
@ApiModel(value="Log对象", description="系统日志")
public class Log extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "访问地址")
    private String url;

    @ApiModelProperty(value = "返回码")
    private Integer code;

    @ApiModelProperty(value = "参数")
    private String param;

    @ApiModelProperty(value = "请求方式")
    private String requestMethod;

    @ApiModelProperty(value = "内容")
    private String result;

    @ApiModelProperty(value = "IP")
    private String ip;

    @ApiModelProperty(value = "业务ID")
    private Long businessId;

    @ApiModelProperty(value = "业务类型，模块名，例如：sys,cms")
    private Long businessType;

    @ApiModelProperty(value = "操作类型，1增2删3改4查")
    private Integer type;


}
